﻿using LinqToBing.Bing.Wrapper;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Xml.Linq;
using LinqToBing.Bing.Wrapper.Search;
using LinqToBing.Bing.Wrapper.Enums;

namespace LinqToBing.Bing.Test
{
    
    
    /// <summary>
    ///This is a test class for SearchHelperTest and is intended
    ///to contain all SearchHelperTest Unit Tests
    ///</summary>
    [TestClass()]
    public class SearchHelperTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for SearchHelper Constructor
        ///</summary>
        [TestMethod()]
        public void SearchHelperConstructorTest()
        {
            SearchHelper target = new SearchHelper();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for DoSearch
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void DoSearchTest()
        {
            SearchTypeContainer[] SearchTypesContainer = null; // TODO: Initialize to an appropriate value
            string SearchQuery = string.Empty; // TODO: Initialize to an appropriate value
            Dictionary<string, object> Params = null; // TODO: Initialize to an appropriate value
            XDocument expected = null; // TODO: Initialize to an appropriate value
            XDocument actual;
            actual = SearchHelper_Accessor.DoSearch(SearchTypesContainer, SearchQuery, Params);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DoSearch
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void DoSearchTest1()
        {
            string AppId = string.Empty; // TODO: Initialize to an appropriate value
            SearchTypeContainer[] SearchTypesContainer = null; // TODO: Initialize to an appropriate value
            string SearchQuery = string.Empty; // TODO: Initialize to an appropriate value
            XDocument expected = null; // TODO: Initialize to an appropriate value
            XDocument actual;
            actual = SearchHelper_Accessor.DoSearch(AppId, SearchTypesContainer, SearchQuery);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DoSearch
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void DoSearchTest2()
        {
            SearchRequestBase search = null; // TODO: Initialize to an appropriate value
            SearchResult expected = null; // TODO: Initialize to an appropriate value
            SearchResult actual;
            actual = SearchHelper_Accessor.DoSearch(search);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DoSearch
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void DoSearchTest3()
        {
            string AppId = string.Empty; // TODO: Initialize to an appropriate value
            SearchTypeContainer[] SearchTypesContainer = null; // TODO: Initialize to an appropriate value
            string SearchQuery = string.Empty; // TODO: Initialize to an appropriate value
            Dictionary<string, object> Params = null; // TODO: Initialize to an appropriate value
            XDocument expected = null; // TODO: Initialize to an appropriate value
            XDocument actual;
            actual = SearchHelper_Accessor.DoSearch(AppId, SearchTypesContainer, SearchQuery, Params);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DoSearch
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void DoSearchTest4()
        {
            string AppId = string.Empty; // TODO: Initialize to an appropriate value
            SearchSource[] SearchTypes = null; // TODO: Initialize to an appropriate value
            string SearchQuery = string.Empty; // TODO: Initialize to an appropriate value
            Nullable<int> Offset = new Nullable<int>(); // TODO: Initialize to an appropriate value
            Nullable<int> Count = new Nullable<int>(); // TODO: Initialize to an appropriate value
            XDocument expected = null; // TODO: Initialize to an appropriate value
            XDocument actual;
            actual = SearchHelper_Accessor.DoSearch(AppId, SearchTypes, SearchQuery, Offset, Count);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DoSearch
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void DoSearchTest5()
        {
            SearchSource[] SearchTypes = null; // TODO: Initialize to an appropriate value
            string SearchQuery = string.Empty; // TODO: Initialize to an appropriate value
            Nullable<int> Offset = new Nullable<int>(); // TODO: Initialize to an appropriate value
            Nullable<int> Count = new Nullable<int>(); // TODO: Initialize to an appropriate value
            XDocument expected = null; // TODO: Initialize to an appropriate value
            XDocument actual;
            actual = SearchHelper_Accessor.DoSearch(SearchTypes, SearchQuery, Offset, Count);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DoSearch
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void DoSearchTest6()
        {
            SearchTypeContainer[] SearchTypesContainer = null; // TODO: Initialize to an appropriate value
            string SearchQuery = string.Empty; // TODO: Initialize to an appropriate value
            XDocument expected = null; // TODO: Initialize to an appropriate value
            XDocument actual;
            actual = SearchHelper_Accessor.DoSearch(SearchTypesContainer, SearchQuery);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DoSearch
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void DoSearchTest7()
        {
            string AppId = string.Empty; // TODO: Initialize to an appropriate value
            List<SearchSource> SearchTypes = null; // TODO: Initialize to an appropriate value
            string SearchQuery = string.Empty; // TODO: Initialize to an appropriate value
            Nullable<int> Offset = new Nullable<int>(); // TODO: Initialize to an appropriate value
            Nullable<int> Count = new Nullable<int>(); // TODO: Initialize to an appropriate value
            XDocument expected = null; // TODO: Initialize to an appropriate value
            XDocument actual;
            actual = SearchHelper_Accessor.DoSearch(AppId, SearchTypes, SearchQuery, Offset, Count);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ExecuteSearch
        ///</summary>
        [TestMethod()]
        public void ExecuteSearchTest()
        {
            SearchRequestBase search = null; // TODO: Initialize to an appropriate value
            SearchResult expected = null; // TODO: Initialize to an appropriate value
            SearchResult actual;
            actual = SearchHelper.ExecuteSearch(search);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ExecuteSearch
        ///</summary>
        [TestMethod()]
        public void ExecuteSearchTest1()
        {
            string AppID = string.Empty; // TODO: Initialize to an appropriate value
            SearchSource searchTypeEnum = new SearchSource(); // TODO: Initialize to an appropriate value
            List<string> locations = null; // TODO: Initialize to an appropriate value
            SearchResultBase expected = null; // TODO: Initialize to an appropriate value
            SearchResultBase actual;
            actual = SearchHelper.ExecuteSearch(AppID, searchTypeEnum, locations);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for RegisterAppId
        ///</summary>
        [TestMethod()]
        public void RegisterAppIdTest()
        {
            string AppId = string.Empty; // TODO: Initialize to an appropriate value
            SearchHelper.RegisterAppId(AppId);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AppId
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void AppIdTest()
        {
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            SearchHelper_Accessor.AppId = expected;
            actual = SearchHelper_Accessor.AppId;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
